package hippo.wesen.gencode;

import hippo.exceptions.ObjectCopyFailedException;

public final class GenCodeFactory {

	private GenCodeFactory() {
		//
	}

	public static GenCode getGenCode() {
		return new GenCode();
	}
	
	public static GenCode getGenCode(GenCode originalGenCode, Mutation m) throws ObjectCopyFailedException {
		GenCode newGenCode = (GenCode) hippo.utils.Utilities.copyObject(originalGenCode);
		newGenCode.mutate(m);
		return newGenCode;
	}
}
